package com.itheima.neibulei4;

import java.io.OutputStreamWriter;

public class Test {

    public static void main(String[] args) {
        System.out.println(Outer.a);
        //外部类名.内部类名 对象名= new 外部类名.内部类名();
        /*Outer.Inner inner = new Outer.Inner();
        System.out.println(inner.b);
        inner.dance();
*/
        System.out.println(Outer.Inner.b);
        Outer.Inner.dance();

    }
}
class Outer {
   static int a = 10;

    static class Inner {
       static int b = 20;

        public static void dance() {
            System.out.println("inner...dance");
        }
    }

    public void sing() {
        System.out.println("outer...sing");
    }

}